package czt.ocr.mapper;

import czt.ocr.entity.EFile;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author czt
 * @version 1.0
 * @since 2025/4/6
 */
@Mapper
public interface EFileMapper {

    @Select("select * from e_file")
    List<EFile> getEFiles();

    @Insert("INSERT INTO e_file (name, feeder, station, type, state, owner, create_time, run_time) " +
            "VALUES (#{name}, #{feeder}, #{station}, #{type}, #{state}, #{owner}, #{createTime}, #{runTime})")
    void insertEFile(EFile eFile);

}
